﻿package com.saint.video 
{
	import com.saint.utils.Logger;
	/**
	 * config file for the VideoPlayerApplication
	 * 
	 * holds all teh variables to set r.g. autoplay, resize, stretch to fit .....
	 * 
	 * 
	 * default settings create a stand alone player with controls autosizing to fill stage without stretching
	 * 
	 * @author kembera 
	 */
	public class VideoPlayerConfig
	{
	
		/*	autoplay
		 *
		 * whether the video should play aUtomatically once loaded */
		public var autoPlay:Boolean  = true;
		
		/*	showControls
		 *
		 * set to true to show controls, false to have no video controls */
		public var showControls:Boolean = true;
		
		/* holdingImage
		 *
		 * file path to an image loaded in behind the video player */
		public var holdingImage:String = "holdingImage.jpg";

		
		 /*standAlonePlayer
		  *
		  * Boolean to indicating if the video player is the only object in the swf,
		  * and as a resule will fill all the available area*/
		  public var standAlonePlayer:Boolean = false;
		  
		  
		
		
		 /*set player size
		   *
		   *
		   *  1. sort out the video screen size
		   *  2. make if fill whole space if stane alone
		   *  3. make controls scale to fit with video player
		   *
		   *
		   * variables representing the width and height of the video player screen */
		  public var videoScreenWidth:Number =  500; 
		  public var videoScreenHeight:Number = 281;
		  
		  
		
		/*stretchToFit
		   * 
		   * decides if the player will stretch to fit the available area or keep its ration in the available areaa*/
		  public var stretchToFit:Boolean = false;
		
		
		/* autoSize
		 * 
		 * whether the video automaticall fills as muxh area or not
		 *  true:scale to fit available are
		 *  false: it will stay in the origional flv size settings
		 */
		public var reSizeFlv:Boolean = true; 
	
			
		/* video file
		 * 
		 * 
		 */ 
		public var videoFile:String = "";
		
		public function VideoPlayerConfig() 
		{
			Logger.info("VideoPlayerConfig.VideoPlayerConfig");
		}
		
	}

}